package com.blacksheep.mtm.dao;

import com.blacksheep.mtm.dto.front.OrderReviewFront;
import com.blacksheep.mtm.pojo.manager.TbOrderReview;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TbOrderReviewMapper {
    int deleteByPrimaryKey(Long id);

    int insert(TbOrderReview record);

    int insertSelective(TbOrderReview record);

    TbOrderReview selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TbOrderReview record);

    int updateByPrimaryKey(TbOrderReview record);

    List<OrderReviewFront> selectList(@Param("search") String search, @Param("state") int[] state, @Param("minDate") String minDate,
                                      @Param("maxDate") String maxDate, @Param("orderCol") String orderCol,
                                      @Param("orderDir") String orderDir);

//    int updateStateById(long id,int state);
}